package com.jkt.rms.commons.configuration;

import java.util.Locale;

import org.springframework.context.MessageSource;
import org.springframework.context.MessageSourceAware;

public class MessageSourceImpl implements MessageSourceAware {

	private MessageSource messageSource;

	@Override
	public void setMessageSource(MessageSource rmsmessageSource) {
		this.messageSource = rmsmessageSource;
	}

	public String getMessage(String msgKey)
	{
		return messageSource.getMessage(msgKey,null,Locale.ENGLISH);
	}
}
